package com.test.fundible.fundible_07_loan_status;

import android.text.TextUtils;

import com.google.gson.Gson;

import org.json.JSONObject;


public class Rate_fundibleNormalW_fundibleindowConfig {

    private static Rate_fundibleNormalW_fundibleindowConfig instance;

    private Rate_fundibleNormalW_fundibleindowConfig(){}

    public static Rate_fundibleNormalW_fundibleindowConfig getInstance(){
        if (instance==null) instance = new Rate_fundibleNormalW_fundibleindowConfig();
        return instance;
    }

    public static void parse_fundible(JSONObject jsonObject){
        instance = new Gson().fromJson(jsonObject.toString(), Rate_fundibleNormalW_fundibleindowConfig.class);
        instance.switch1 = jsonObject.optString("switch");
    }

    private int num;
    private String content;
    private String switch1;

    public int getNum_fundible() {

        //tag2024
        return 3;

//        return num;
    }

    public String getContent_fundible() {
        if (TextUtils.isEmpty(content)) return "";
        return content;
    }

    public boolean isSwitch_fundible(){

        //tag2024
        return false;

//        if (TextUtils.isEmpty(switch1)) return false;
//        return switch1.equalsIgnoreCase("YES");
    }

}
